    <!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>JS 内置对象 - Number</title>
</head>
<body>
    <h1>JS 内置对象 - Number</h1>
    <hr>

<script>
   
   console.log('JS可表示的最小值:' , Number.MIN_VALUE); 
   console.log('JS可表示的最大值:' , Number.MAX_VALUE); 
    var a = 100.00987;
    console.log(a);
    console.log(a.toString());
    // 以指定的进制输出
    console.log(a.toString(2));
    console.log(a.toString(8));
    console.log(a.toString(16));
    console.log(a.toString(36));

    // 保留小数位数
    console.log(a.toFixed());
    console.log(a.toFixed(2));
    console.log(a.toFixed(3));


</script>
    
    

</body>
</html>